package com.bawei.a2010douyin.entity;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.io.Serializable;

//多布局的实体类必须实现MultiItemEntity 并重写方法
public class VideoEntity implements MultiItemEntity, Serializable
{
    private String address;
    private String authname;
    private String caption;
    private int dianzan;
    private int guanzhu;
    private String headpath;
    private int id;
    private int like_count;
    private String publishtime;
    private int type;//0代表视频 1代表直播 2代表全屏观看
    private String videomainimg;
    private String videopath;
    private int view_count;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAuthname() {
        return authname;
    }

    public void setAuthname(String authname) {
        this.authname = authname;
    }

    public String getCaption() {
        return caption;
    }

    public void setCaption(String caption) {
        this.caption = caption;
    }

    public int getDianzan() {
        return dianzan;
    }

    public void setDianzan(int dianzan) {
        this.dianzan = dianzan;
    }

    public int getGuanzhu() {
        return guanzhu;
    }

    public void setGuanzhu(int guanzhu) {
        this.guanzhu = guanzhu;
    }

    public String getHeadpath() {
        return headpath;
    }

    public void setHeadpath(String headpath) {
        this.headpath = headpath;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getLike_count() {
        return like_count;
    }

    public void setLike_count(int like_count) {
        this.like_count = like_count;
    }

    public String getPublishtime() {
        return publishtime;
    }

    public void setPublishtime(String publishtime) {
        this.publishtime = publishtime;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getVideomainimg() {
        return videomainimg;
    }

    public void setVideomainimg(String videomainimg) {
        this.videomainimg = videomainimg;
    }

    public String getVideopath() {
        return videopath;
    }

    public void setVideopath(String videopath) {
        this.videopath = videopath;
    }

    public int getView_count() {
        return view_count;
    }

    public void setView_count(int view_count) {
        this.view_count = view_count;
    }

    @Override
    public int getItemType() {//返回对应的type类型
        return type;
    }
}
